package com.billdowney.entity.auth;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.billdowney.entity.base.BaseEntityIdByUUIDHex;

import io.swagger.annotations.ApiModelProperty;

/**
 * 权限角色
 * 
 * @author 超级小富翁 - BillDowney
 * @date 2019年2月25日 上午11:28:43
 */
@Entity
@Table(name = "auth_role")
public class AuthRole extends BaseEntityIdByUUIDHex {

	private static final long serialVersionUID = 6072270065304780081L;
	@ApiModelProperty(value = "角色名称")
	@Column(length = 30)
	private String roleName;
	@ApiModelProperty(value = "角色编码")
	@Column(length = 50)
	private String roleCode;

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	@Override
	public String toString() {
		return "AuthRole [roleName=" + roleName + ", roleCode=" + roleCode + "]";
	}

}
